<div data-mod-id="footer">
                <div class="footer" data-mod-name="footer">
                    <div class="footer-service" style="display:block;">
                        

<footer>
 
<div class="layui-container">
    
    <div class="layui-row footer-box" style="padding:10px">
        <div class="layui-col-sm5">
            <div class="layui-col-sm12 layui-col-xs12">
                <div style="float:left">
                    <a href="/"><img src="{:Config::get('app.images_host')}/images/web/logo.png" alt="logo" style="width:100px;"/></a>
                </div>
                <div style="float:right;vertical-align: middle;margin-top: 15px;">
                    <a class="facebook" href="https://www.facebook.com/lilybearingmanufacturing" target="_blank"><img style="width: 20px;" src="{:Config::get('app.images_host')}/images/web/facebook.png" alt="facebook"/></a>
                    <a class="linkedin" href="https://www.linkedin.com/company/lily-bearing-manufacturing" target="_blank"><img style="width: 20px;" src="{:Config::get('app.images_host')}/images/web/linkedin.png" alt="linkedin"/></a>
                    <a class="twitter" href="https://twitter.com/LilyBearingSh" target="_blank"><img style="width: 20px;" src="{:Config::get('app.images_host')}/images/web/twitter.png" alt="twitter"/></a>
                    <a class="youtube" href="https://www.youtube.com/channel/UCFye_8J4Hbi1q3jS1U6YDrg" target="_blank"><img style="width: 20px;" src="{:Config::get('app.images_host')}/images/web/youtube.png" alt="youtube"/></a>
                </div>
                <div style="clear:both;"></div>  
            </div>
            
            <div class="layui-col-sm12 layui-col-xs12" style="padding:5px 0px">
                <p style="font:12px arial,helvetica,sans-serif;line-height:24px;letter-spacing:1px">Email: <a class='email' href="mailto:lilybearing@lily-bearing.com">lilybearing@lily-bearing.com</a></p>
                <p style="font:12px arial,helvetica,sans-serif;line-height:24px;letter-spacing:1px">Address: Room 301, 6st Block, #525 Yuanjiang Road, Minhang District, Shanghai, China</p>
            </div>
            
            <div class="layui-col-sm12 footer-font layui-col-xs12">
                <p style="font: 12px arial,helvetica,sans-serif;line-height:24px;letter-spacing:1px">Creating value for customers is our core. Using this concept when serving customers, we will considering from the perspective of customers, rather than simply selling products. We provide customers with advanced services such as designing, model selection, pre-sales and after-sales services, using our professional knowledge and experiences in bearing industry over 20 years.</p>
            </div>
        </div>
        

        <div class="layui-col-sm3">
            <h2 style="font: 18px arial,helvetica,sans-serif;">Quick Links</h2>
            <ul style="padding:0px 5px">
                <li style="padding-top:5px;">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/about-us/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">About Us</a>
                </li>
                <li style="padding-top:5px">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/contact-us/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">Contact Us</a>
                </li>
                <li style="padding-top:5px">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/resources/blog/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">Blog</a>
                </li>
                <li style="padding-top:5px">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/resources/technology/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">Technology</a>
                </li>
                <li style="padding-top:5px">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/resources/downloads/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">Downloads</a>
                </li>
                <li style="padding-top:5px">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/request-a-quote/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">Request A Quote</a>
                </li>
                <li style="padding-top:5px">
                    <i class="layui-icon layui-icon-next" style="font-size:12px"></i>
                    <a href="/resources/rohs-reach-compliance/" style="font: 12px arial,helvetica,sans-serif;line-height:14px;color:#ffffff;letter-spacing:1px">RoHS & REACH Compliance</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="footer-bottom-box" style="background-color:#909799;height:40px;line-height:40px;">
    <div class="layui-container">
        <div class="layui-row" style="padding-bottom: 0px;">
            <div class="footer-bottom" style="width:80%" style="padding-bottom: 0px;">
                <div style="font: 12px/14px arial,helvetica,sans-serif;line-height:40px;float:left;letter-spacing:1px">© <?php echo date('Y',time());?> Lily Bearing • All Rights Reserved</div>
                <div style="float:left;margin-left:20px"><a href="/resources/privacy-policy/" style="font: 12px/14px arial,helvetica,sans-serif;line-height:40px;color:#ffffff;letter-spacing:1px">Privacy Policy</a></div>
                <div style="float:left;margin-left:20px"><a href="/resources/terms-conditions/" style="font: 12px/14px arial,helvetica,sans-serif;line-height:40px;color:#ffffff;letter-spacing:1px">Terms Conditions</a></div>
                <div style="clear: both;"></div>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
</div>
</footer>




                    </div>
                    <div id="footer" bi_parent_name="footer" meta-data-adjust-app="hide">
                        <div class="footer-nav" meta-data-adjust-app="hide">
                            
                            <div id="edit-header-drop">
                                
                                <script type="text/html" id="header-lazyload-html-mbnav" class="header-lazyload-html" data-holder="#holder-mbnav">
                                    <div class="header-mbnav">
                                        <div class="header-mbnav-inner">
                                            <div class="header-mbnav-leftmenu">
                                                <ul class="header-mbnav-menulist">
                                                     {foreach $base_data['nav_class'] as $key=>$vo }
                                                    <li data-key="{:change_lower_symbol($vo['first']['cname'])}" class="">
                                                        <a bi_name="{:change_lower_symbol($vo['first']['cname'])}"><span>{:ucwords($vo['first']['cname'])}</span></a>
                                                    </li>
                                                    {/foreach}
                                                    
                                                    <li data-key="language" class="" >
                                                        <a bi_name="Language"><span>Language</span></a>
                                                    </li>
                                                </ul>
                                            </div>
                                            <ul class="header-mbnav-collapses">
                                                {foreach $base_data['nav_class'] as $key=>$vo }
                                                <li data-name="{:change_lower_symbol($vo['first']['cname'])}" bi_parent_name="{:change_lower_symbol($vo['first']['cname'])}">
                                                    <?php if($vo['first']['cname']!='Resources'){?>
                                                    <div class="header-mbnav-level2-content-index">
                                                        <a style="text-decoration: none !important;" href="/{$vo['first']['url']}"><span>{:ucwords($vo['first']['cname'])} Page</span><i class="header-icon-arrow-right"></i></a>
                                                    </div>
                                                    <?php } ?>
                                                    <?php $sds=Db::table('lily_classify')->where([['fid','=',$vo['first']['id']],['status','=',1],['is_show','=','1']])->order('seq','asc')->select();?>
                                                    {foreach $sds as $k=>$v }
                                                    <div class="header-collapse header-collapse-level1 closed">
                                                        <div class="header-collapse-head">
                                                            <a style="text-decoration: none !important;" href="/{:get_class_uplower_url($v['id'])}" bi_name="jump">
                                                                <p bi_name="{:change_lower_symbol($v['cname'])}_jump"><span>{:ucwords($v['cname'])}</span></p>
                                                            </a>
                                                        </div>
                                                    </div>
                                                    <div class="header-collapse-line no-splitLine"></div>
                                                    {/foreach}
                                                </li>
                                                {/foreach}
                                                
                                               
                                                <li data-name="language">
                                                    <div class="header-mbnav-level2-item">
                                                        <a style="text-decoration: none !important;" class="header-mbnav-level2-item_link active" href="https://www.lily-bearing.com/">English<i class="layui-icon layui-icon-ok" style="font-size: 14px; color: #36648a;"></i> </a>
                                                        <a style="text-decoration: none !important;" class="header-mbnav-level2-item_link" href="https://www.lilybearing.com/">简体中文</a>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>
                                        
                                    </div>
                                </script>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>

 <!-- end 脚部 -->
<script src="/static/js/jquery-2.1.4.min.js"></script>
<script src="/static/layui/layui.js" charset="utf-8"></script>
<script src="/static/js/footer-us.js?t={:time()}" type="text/javascript"></script>
<script src="/static/js/footer-hua-es.js?t={:time()}" type="text/javascript"></script>
<script>
    window.gConfig = window.gConfig || {}; window.gConfig.seed = window.gConfig.seed || [];
    window.gConfig.seed.push({
      name: '@cloud/pep-header-and-footer-china', data:
      {
        "packages": {
          "@cloud/pep-header-and-footer-china": {
            "path": "/hua/cnpm/china/",
          },
          "@cloud/lazyload": {
            "path": "/hua/cnpm/lazyload/",
          },
          "@cloud/portal-utils": {
            "path": "/hua/cnpm/utils/",
          },
        },
        "modules": {
          "@cloud/pep-header-and-footer-china/m/index": {
            "requires": [
              "@cloud/portal-utils",
              "@cloud/lazyload"
            ]
          },
          "@cloud/pep-header-and-footer-china/pc/index": {
            "requires": [
              "@cloud/portal-utils",
              "@cloud/lazyload"
            ]
          }
        }
      }
    })
  </script>
  <script src="/hua/js/g1.js"></script>

<script type="text/javascript" src="/hua/js/feloader.js" crossorigin="anonymous"></script>

<script>
    if( !/pcloudApp/i.test(navigator.userAgent) ){
        $("#header").css("display","block");
    }
</script>


    </body>
</html>
<!-- <script src="/static/js/wai.js?t={:time()}" type="text/javascript"></script> -->

<div id='waijs-after'>


    <!-- Google Tag Manager -->
    <script>

        (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-53QZTLM');
    </script>
    <!-- End Google Tag Manager -->

    <!-- Global 广告 1016956908 -->
    <script async type="text/javascript" defer="defer" src="https://www.googletagmanager.com/gtag/js?id=AW-1016956908"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'AW-1016956908', {'allow_enhanced_conversions': true});
        gtag('config', 'AW-10806041590');
        var enhanced_conversion_data;
        window.addEventListener('load', function () {
            document.querySelectorAll('button[type*="button"]').forEach(function(e){
                e.addEventListener('click',function(){

                    var name = document.getElementsByName("name")[0].value;
                    var email = document.getElementsByName("email")[0].value;
                    var code = document.getElementsByName("code")[0].value;
                    var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;

                    if (name != "" && email != "" && email.match(mailformat)) {
                        enhanced_conversion_data = { "email": email }
                        gtag('event', 'conversion', {'send_to': 'AW-1016956908/BKdJCLf-zP4CEOyP9uQD'});
                    };
                });
            });
        });
    </script>
    <!-- end 广告 -->

    <!-- bing -->
    <script>
        (function(w,d,t,r,u){
            var f,n,i;
            w[u]=w[u]||[],f=function()
            {
                var o={ti:" 56063651"};
                o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")
            },
                n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function()
            {
                var s=this.readyState;
                s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)
            },
                i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)
        })
        (window,document,"script","//bat.bing.com/bat.js","uetq");
    </script>
    <!-- end bing -->

    <!--end bing-->
    <script type="text/javascript">
        (function(c,l,a,r,i,t,y){
            c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
            t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
            y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
        })(window, document, "clarity", "script", "cfkj4rwxs5");
    </script>
    
    <!-- 站外代码 -->
     <!-- Start of LiveChat (www.livechatinc.com) code -->
    <script>
        var online_group_id='';
        function get_dynamic_configuration_group(){
          $.ajax({
            type: 'GET',
            url:"https://api.livechatinc.com/v3.5/customer/action/get_dynamic_configuration?license_id=3911741",
            async:false,
            success:function(res){
              if(res.online_group_ids.length<2){ 
                online_group_id=res.online_group_ids[0];
              }else{
                online_group_id=res.online_group_ids[1];
              }
            }
          });
          return online_group_id;
        }
        online_group_id=get_dynamic_configuration_group();
        window.__lc = window.__lc || {};
        window.__lc.license = 3911741;
        if(online_group_id!='0'){
          window.__lc.group = online_group_id;
        }
        ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))

          function liveChat_lily_click(){ /*主动唤起livechat*/
            LiveChatWidget.call('maximize');
          }
    </script>
    <noscript><a href="https://www.livechatinc.com/chat-with/3911741/" rel="nofollow">Chat with us</a>, powered by <a href="https://www.livechatinc.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a></noscript>
    <!-- End of LiveChat code -->


    <!--ga代码开始-->
    <script async type="text/javascript" defer="defer" src="https://www.googletagmanager.com/gtag/js?id=G-Z0MD8PGCEB"></script>
    <span style="font-size: 12pt;">
    <script type="text/javascript">
         function getParam(p){
            var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search);
            return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
        }

        function getIP3(url,k){
          $.ajax({
              url: url,
              timeout : 500, //超时时间设置，单位毫秒
              type : 'get',  
              tryCount : 0,
              retryLimit : 2,
              success:function(ip){
                  layui.sessionData('clientIP', {key: k, value: ip});
              },
              error:function(){ //失败处理
                this.tryCount++;
                this.timeout += 500
                if (this.tryCount <= this.retryLimit) {   //try again
                  $.ajax(this);
                  return;
                }       
              }
            });
        }

        // 获取客户端ip
        function getIPs(backFun){
            var ip_dups = {};
            var RTCPeerConnection = window.RTCPeerConnection
              || window.mozRTCPeerConnection
              || window.webkitRTCPeerConnection;
            var useWebKit = !!window.webkitRTCPeerConnection;
            var mediaConstraints = {
              optional: [{ RtpDataChannels: true }]
            };
            // 这里就是需要的ICEServer了
            var servers = {
              iceServers: [
                { urls: "stun:stun.services.mozilla.com" },
                { urls: "stun:stun.l.google.com:19302" },
              ]
            };
            var pc = new RTCPeerConnection(servers, mediaConstraints);
            function handleCandidate (candidate) {
              var ip_regex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/
              var hasIp = ip_regex.exec(candidate)
              if (hasIp) {
                var ip_addr = ip_regex.exec(candidate)[1];
                if (ip_dups[ip_addr] === undefined)
                backFun(ip_addr);
                ip_dups[ip_addr] = true;
              }
            }
            // 网络协商的过程
            pc.onicecandidate = function (ice) {
              if (ice.candidate) { 
                handleCandidate(ice.candidate.candidate);
              }
            };
      
            pc.createDataChannel("");
            //创建一个SDP(session description protocol)会话描述协议 是一个纯文本信息 包含了媒体和网络协商的信息 
            pc.createOffer(function (result) { //成功回调
              pc.setLocalDescription(result, function () { }, function () { });
            }, function () {}); //失败回调

            // //延迟，让一切都能完成
            // setTimeout(function () {
            //   var lines = pc.localDescription.sdp.split('\n');
            //   lines.forEach(function (line) {
            //     if (line.indexOf('a=candidate:') === 0)
            //       handleCandidate(line);
            //   });
            // }, 1000);
        }

        // 获取客户端ip
        var clientIP = layui.sessionData('clientIP') || {}
        if(!clientIP.ip){ 
            getIPs(function(ip){
                layui.sessionData('clientIP', {key: 'ip', value: ip});
            })
        }

        setTimeout(function () { //设置 1s 后执行, 超时时间2s
          var clientIP = layui.sessionData('clientIP')
          if(!clientIP.ip){
            url = 'https://ipapi.co/ip/'  //每月30 000, 每天最多1000
            getIP3(url, 'ip')
          }else if(!clientIP.ipv4 && clientIP.ip.indexOf(':')>=0){ //ipv6
            url = 'https://api.ipify.org/' //无限制地使用它（即使您每分钟执行数百万个请求)
            getIP3(url,'ipv4') 
          }
        }, 1000);

        // 从服务端获取客户端ip
        server_ip = "<?php echo request()->ip() ?>"

        setTimeout(function () { // 设置 4s 后执行：getIPs(1s缓冲) + getIP3(3s缓冲)
            ipnumber = ''
            var clientIP = layui.sessionData('clientIP')
            if(clientIP.ip){
              ipnumber = 'C:' + JSON.stringify(clientIP).replace(/"|{|}|/g, '').replace(/ip:|ipv4:/g, '') + ' || ' 
            }
            if(server_ip){
              ipnumber += 'S:' + server_ip
            }

            var send = layui.sessionData('send') //是否已向谷歌发送，避免每打开一个页面就发送一次
            var gclid = getParam('gclid');
            if(gclid!==null){
              window.dataLayer = window.dataLayer || [];
              function gtag(){dataLayer.push(arguments);}
              gtag('js', new Date());
          
              gtag('config', 'G-Z0MD8PGCEB');
              gtag('event', 'page_view', {
                'send_to':  'G-Z0MD8PGCEB',
                'dimension5': ipnumber,
                'gclidd': gclid
              });
            }else if(!send.gtag){ console.log(ipnumber)
              layui.sessionData('send', {key: 'gtag', value: 1});
              window.dataLayer = window.dataLayer || [];
              function gtag(){dataLayer.push(arguments);}
              gtag('js', new Date());
          
              gtag('config', 'G-Z0MD8PGCEB');
              gtag('event', 'page_view', {
                'send_to':  'G-Z0MD8PGCEB',
                'dimension5': ipnumber,
              });
            }
          }, 4000);
        
    </script>
    </span>

    <!-- AdWords追踪livechat聊天 -->
    <script>
      var LC_API=LC_API||{};LC_API.on_chat_started=function(){
        gtag('event', 'conversion', { 'send_to': 'AW-1016956908/GBYqCIn4qZMBEOyP9uQD'});
        gtag('event', 'conversion', {'send_to': 'AW-10806041590/-OAjCLmvioUDEPa33KAo'});
        /*bing*/
        window.uetq = window.uetq || [];
        window.uetq.push("event", "Chat", {"event_category":"LiveChat"});
      }
    </script>
</div>

<script type="text/javascript">
    $(function(){
        var cartloaded = false;
        $("#order_num_change_img").hover(function(){
            if(!cartloaded){
                $.ajax({
                    url: '{:url("/payment/addorder/order_ajax")}',/*传向后台服务器文件*/
                    type: 'POST',    /*传递方法 */
                    dataType: 'json',  //传递数据的格式
                    async: true, //这是重要的一步，防止重复提交的
                    cache: false,  //设置为false，上传文件不需要缓存。
                    contentType: false,//设置为false,因为是构造的FormData对象,所以这里设置为false。
                    processData: false,//设置为false,因为data值是FormData对象，不需要对数据做处理。

                    success: function (res){
                        if(res.status==1){
                            var h = '';
                            $.each(res.cookiedata,function (index,el){
                                h += '<div class="wrapper-order-li"><div class="wrapper-order-li-left"><img src="'+el.img+'?x-oss-process=image/resize,w_40,h_40,m_pad/auto-orient,1/quality,q_90/format,png">';
                                h += '<span><a href="'+el.url+'">'+el.Product_Number+'</a></span></div>';
                                h += '<div class="wrapper-order-li-right"><span>Price: '+el.Price+'</span>, <span>Num: '+el.num+'</span></div><div style="clear:both"></div></div>';
                            });
                            if(res.cookiedata.length==0){
                                 $("#wrapper-order").html('');
                                 $("#wrapper-order").hide();
                            }else{
                                h += '<div class="wrapper-order-li-look"><a href="/order/">View Order</a></div>';
                                $("#wrapper-order").empty();
                                $("#wrapper-order").append(h);
                                cartloaded = true;
                            }

                        }
                    }
                });
            }
            if(cartloaded) {
                $("#wrapper-order").show();
            }
            return false;
        },function (){
            if(cartloaded) {
                $("#wrapper-order").hide();
            }
        });
        $("#wrapper-order").hover(function (){
            if(cartloaded){
                $("#wrapper-order").show();
            }
        },function (){
            if(cartloaded){
                $("#wrapper-order").hide();
            }
        })
    });
</script>

<script type="text/javascript">
    layui.use('form', function(){
        var form = layui.form;

        form.on('submit(footer_formDemo)', function(data){
            var index = layer.load(1, { shade: [0.1,'#fff'] });
            var name=$.trim($("input[name='footer_name']").val());
            var email=$.trim($("input[name='footer_email']").val());
            var phone=$.trim($("input[name='footer_phone']").val());
            var code = $.trim($("input[name='footer_code']").val());
            var comments=$.trim($("textarea[name='footer_comments']").val());
            var company='';
            var Product_Number='';

            var lasturl=<?php if(isset($_SERVER['HTTP_REFERER'])){ echo "'".$_SERVER['HTTP_REFERER']."'";}else{echo "'"."'";}?>;/*上一个页面的url 不能在ajax里面书写这样就多了一层页面关系*/
            var nowurl=window.location.href;/*当前页面url*/
            var formData = new FormData();
            formData.append('name', name);
            formData.append('email', email);
            formData.append('phone', phone);
            formData.append('comments', comments);
            formData.append('lasturl', lasturl);
            formData.append('nowurl', nowurl);
            formData.append('code', code);
            formData.append('Product_Number', Product_Number);
            formData.append('company', company);

            $.ajax({
                url: "{:url('index/xunpan/send_inquiry')}",/*传向后台服务器文件*/
                type: 'POST',    /*传递方法 */
                data: formData,  /*要带的值，在这里只能带一个formdata ，不可以增加其他*/
                dataType: 'json',  //传递数据的格式
                async: true, //这是重要的一步，防止重复提交的
                cache: false,  //设置为false，上传文件不需要缓存。
                contentType: false,//设置为false,因为是构造的FormData对象,所以这里设置为false。
                processData: false,//设置为false,因为data值是FormData对象，不需要对数据做处理。

                success: function (res){
                    if(res.status==1){
                        layer.closeAll('loading');
                        $(".layui-form input").each(function(){
                            $(this).val('');
                        })
                        $(".layui-textarea").val('');
                        $('#successfullyfrom_footer').css('display','block');
                        return false;
                    }else{
                        layer.closeAll('loading');
                        if(res.name!='no'){
                            layer.tips(res.msg, '#'+res.name.replace("form","footer_"), {
                                tips: [1, '#5FB878'],
                                area: ['200px', 'auto']
                            });
                        }else{
                            layer.msg(res.msg, {
                                time: 2000,
                                icon: 5
                            });
                        }
                    }
                }
            });

            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });
    })
</script>
<script type="text/javascript">
    layui.use('form', function(){
        var form = layui.form;

        form.on('submit(subscribe_formDemo)', function(data){
            var email=$.trim($("input[name='subscribe_email']").val());
            var formData = new FormData();
            formData.append('email', email);

            $.ajax({
                url: "{:url('index/xunpan/subscribe_email')}",/*传向后台服务器文件*/
                type: 'POST',    /*传递方法 */
                data: formData,  /*要带的值，在这里只能带一个formdata ，不可以增加其他*/
                dataType: 'json',  //传递数据的格式
                async: true, //这是重要的一步，防止重复提交的
                cache: false,  //设置为false，上传文件不需要缓存。
                contentType: false,//设置为false,因为是构造的FormData对象,所以这里设置为false。
                processData: false,//设置为false,因为data值是FormData对象，不需要对数据做处理。

                success: function (res){
                    if(res.status==1){
                        layer.closeAll('loading');
                        $("input[name='subscribe_email']").val('');
                        $('#successfullyfrom_footer').css('display','block');
                        return false;
                    }else{
                        layer.closeAll('loading');
                        if(res.name!='no'){
                            layer.tips(res.msg, '#'+res.name, {
                                tips: [1, '#5FB878'],
                                area: ['200px', 'auto']
                            });
                        }else{
                            layer.msg(res.msg, {
                                time: 2000,
                                icon: 5
                            });
                        }
                    }
                }
            });

            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });
    })
    function close_successfullyfrom_footer(){
        $('#successfullyfrom_footer').css('display','none');
    }
</script>
<script type="text/javascript">
    layui.use("element", function () {
  var element = layui.element;
});
</script>

<script type="text/javascript">
    function lan_qihuan2(){
  $(".qlang-sechond").css('display','block');
}

function qlang_hover(){
  $("#qlang-sechond-l1").css('background','#ffffff');
  $("#qlang-sechond-l1 a").css('color','black');
  $("#qlang-sechond-l1 i").css('color','#ffffff');
}
function qlang_hover_out(){
  $("#qlang-sechond-l1").css('background','#36648a');
  $("#qlang-sechond-l1 a").css('color','#ffffff');
  
}

$(document).mouseup(function(e) {
  var _con = $('#qlang');
  if( !_con.is(e.target) && _con.has(e.target).length === 0 ){
    $('#qlang-sechond').css('display','none');
  }
});
</script>